<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="init.jsp"%>
<%@ taglib uri="controls" prefix="z"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>成龙网-站内信</title>
		<meta name="keywords" content="教员申请记录" />
		<meta name="author" content="成龙网" />
		<meta name="copyright" content="成龙网" />
		<script src="${ctx}/common/js/pagebar.js" type="text/javascript"></script>
		<script language="JavaScript">
	function CheckAll(bool) {
		var id_array = document.getElementsByName("all_id[]");
		for ( var i = 0; i < id_array.length; i++) {
			id_array[i].checked = bool;
		}
	}
	//设置已读
	function doSet(id) {
		location.href = "message!set.action?id=${teacher.id}&msgId=" + id;
	}

	//删除
	function doDelete(id) {
		jConfirm("您确定删除这条记录吗？", "删除消息", function(flag) {
			if (flag) {
				location.href = "message!del.action?id=${teacher.id}&msgId="
						+ id;
			}
		});
	}
</script>
		<body>
			<jsp:include page="../top.jsp" />
			<div class="main ZXmainbg clearfix">
				<div class="jyleft">
					<jsp:include page="tc_nav.jsp" />
				</div>
				<div class="jyright">
					<div class="jyt1">
						<a href="${ctx }/teacher/manage.action?id=${teacher.id}"><img
								src="${ctx}/common/image/d05.gif" width="10" height="11" />
							教员管理系统</a>
					</div>
					<div class="nr">
						欢迎您
						<span class="jyred"> ${teacher.username } </span>，您的教员编号是
						<span class="jyred"> ${teacher.id } </span>。
						<br />
						为了保证您的个人资料不被窃取或修改，请务必在离开时退出并关闭浏览器窗口！
					</div>
				</div>
				<div class="jyxx">
					<form method="post"
						action="teacher_news_do.php?oldurl_my=/myspace/teacher_news.php"
						name="mainForm" id="mainForm">
						<table width="751" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="25" colspan="2">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td height="26" bgcolor="#66ccff" class="zxxx">
												站内消息
											</td>
											<td height="26" width="50" bgcolor="#66ccff" class="zxxx">
												状态
											</td>
											<td height="26" width="100" bgcolor="#66ccff" class="zxxx">
												发送时间
											</td>
											<td align="center" width="50" valign="middle"
												bgcolor="#66ccff">
												<strong>操 作</strong>
											</td>
										</tr>
										<tr>
											<td height="5" colspan="4"></td>
										</tr>
										<s:iterator value="page.result">
											<tr>
												<td height="30" valign="middle">
													${msg }
												</td>
												<td height="30" valign="middle">
													<s:if test="isRead eq 1">	
													已读
												</s:if>
													<s:else>
														<font color="red">未读</font>
													</s:else>
												</td>
												<td height="30" valign="middle">
													<s:date format="yyyy年MM月dd日 hh:mm:ss" name="createTime" />
												</td>
												<td height="30" valign="middle">
													<a href="javascript:doSet('${id }')">标记已读</a>&nbsp;|&nbsp;
													<a href="javascript:doDelete('${id }')">删除</a>
												</td>
											</tr>
										</s:iterator>
									</table>
								</td>
							</tr>
							<tr>
								<td colspan="4">
									<z:pageBarFront id="_PageBar_Index" />
								</td>
							</tr>
						</table>
					</form>
				</div>
			</div>
			<!--友情链接-->
			<jsp:include page="../bottom.jsp" />
		</body>
</html>